/*
 ==============================================================================
 
 MainComponent.h
 Created: 29 Mai 2012 6:01:00pm
 Author:  Arnaud Sicard
 
 ==============================================================================
 */

#ifndef __MAINCOMPONENT_H_3650B800__
#define __MAINCOMPONENT_H_3650B800__

#include "JuceHeader.h"


class MainComponent : public Component,
public ButtonListener

{
public:
	MainComponent();
    
	~MainComponent();
    
	void paint (Graphics& g);
    
    void buttonClicked (Button* buttonThatWasClicked);
    
private:
    // GUI Components :
    
    ImageButton* installButton1;
    ImageButton* installButton2;
    ImageButton* installButton3;
    ImageButton* folderButton;
    ImageComponent* backImage;
    
    ImageComponent* doneImage1;
    ImageComponent* doneImage2;
    ImageComponent* doneImage3;
    
    ProgressBar* loaderImageBar1;
    ProgressBar* loaderImageBar2;
    ProgressBar* loaderImageBar3;
    
    double progress1;
    double progress2;
    double progress3;
    
    File myFolder;
    
    Label* pathLabel;
    
    
    //functions
	void extract (String myFile, ImageComponent* theDoneImage, ProgressBar* loaderImageBar, double &Progress);
    

};

#endif  // __MAINCOMPONENT_H_3650B800__
